@extends('layouts.master')

@section('title')
@parent
:: Secret
@stop

@section('styles')
@parent
{{ HTML::style('css/easyTree.css') }}
@stop

@section('content')
<h1>Hello User!</h1>
<p>If you see this page, you are logged in.</p>

<div class="col-lg-12">
	<h3 class="text-success">Easy Tree Example</h3>
	<div class="easy-tree">
		{{ $categoriesHelper->htmlList() }}
	</div>
</div>
@stop

@section('endscript')
@parent
{{ HTML::script('js/easyTree.js') }}
<script>
    (function ($) {
        function init() {
            $('.easy-tree').EasyTree({
                addable: false,
                editable: false,
                deletable: false
            });
        }
        window.onload = init();
    })(jQuery)
</script>

@stop